//
//  ManagerObjectData.m
//  WisdomShanXi
//
//  Created by kare on 14-1-27.
//  Copyright (c) 2014年 kare. All rights reserved.
//

#import "ManagerObjectData.h"

@implementation ManagerObjectData

+ (NSURLRequest*)getCurrentRequestRUL:(NSString*)_str
{
    NSLog(@"请求的URL = %@",_str);

    NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:_str]];

return request;
}

+ (NSURL*)getCurrentRUL:(NSString*)_str
{
    
    return  [NSURL URLWithString:_str];
}

+ (id)getCurrentData:(NSData*)_data
{
    NSJSONSerialization *json = [NSJSONSerialization JSONObjectWithData:_data options:NSJSONReadingMutableContainers error:nil];
    
    return  json;
}

+ (NSString*)getCurrentPressDate
{
    NSDateFormatter *dateFormat = [[NSDateFormatter alloc] init];
    [dateFormat setDateFormat:@"yyyy-MM-dd"];
    NSString *fff = [dateFormat stringFromDate:[NSDate date]];
    return fff;
}
@end
